<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>登录页面</title>
  </head>
  
  <body>
  	<h2 align="center">欢迎登录</h2>
    <form action="${pageContext.request.contextPath }/LoginServlet" method="post">
    <table align="center">
    	<tr>
    		<td>用户名：</td>
    		<td><input type="text" name="username"/></td>
    	</tr>
    	
    	<tr>
    		<td>密码：</td>
    		<td><input type="password" name="password"/></td>
    	</tr>
    	
    	<tr>
    		<td>&nbsp;</td>
    		<td align="right">
	    		<input type="reset" value="重置">&nbsp;&nbsp;
	  			<input align="right" type="submit" value="登录">
    		</td>
    	</tr>
    </table>
    </form>
    <div style="color:red;text-align:center;">${message }</div>
  </body>
</html>
